package com.demonlover.oauth2.sever.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import com.demonlover.oauth2.sever.domain.RolePermission;
import com.demonlover.oauth2.sever.mapper.RolePermissionMapper;
import com.demonlover.oauth2.sever.domain.RolePermissionExample;
import com.demonlover.oauth2.sever.service.RolePermissionService;
/**
 * @author  WuChao
 * @date  2020/6/3 10:50
 * @version 1.0
 */
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission> implements RolePermissionService{

    @Override
    public long countByExample(RolePermissionExample example) {
        return baseMapper.countByExample(example);
    }
    @Override
    public int deleteByExample(RolePermissionExample example) {
        return baseMapper.deleteByExample(example);
    }
    @Override
    public List<RolePermission> selectByExample(RolePermissionExample example) {
        return baseMapper.selectByExample(example);
    }
    @Override
    public int updateByExampleSelective(RolePermission record,RolePermissionExample example) {
        return baseMapper.updateByExampleSelective(record,example);
    }
    @Override
    public int updateByExample(RolePermission record,RolePermissionExample example) {
        return baseMapper.updateByExample(record,example);
    }
}
